<!doctype html>
<html lang="">
  <head>
    <meta charset="UTF-8" />
    <link rel="icon" href="/favicon.ico" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Vite App</title>
    <style></style>
  </head>
  <body>
    <div id="app">
      <img
        :src="url"
        alt="图片"
        style="width: 100px; height: 100px"
        autofocus
        tabindex="0"
        @keydown.right="x+=10"
        @keydown.left="x-=10"
        @keydown.up="y-=10"
        @keydown.down="y+=10"
        :style="{translate: `${x}px ${y}px`}"
      />
    </div>
    <script src="./vue.js"></script>
    <script>
      new Vue({
        el: '#app',
        data: {
          x: 10,
          y: 20,
          url: 'https://img0.baidu.com/it/u=2763769135,2196961465&fm=253&fmt=auto&app=138&f=JPEG?w=300&h=300',
        },
        methods: {},
      })
    </script>
  </body>
</html>
